var volte_voice_traffic = []// VOLTE话务量（万Erl）
var upoct = []// LTE数据流量（TB)
var starttime = []
var geoDim = []// 地理纬度子集列表
var HB_province = '河北省'
var volteVoiceTraffic_upoct_JSON = {}
var high_load_num = []// 高负荷小区数
var basic_comm_complain_ratio = []// 基础通信万投比
var mr_coverage_rate = []// MR覆盖率
var poor_coverage_cell_ratio = []// 弱覆盖小区占比
var critical_alarm_ratio = []// 严重告警小区占比-->严重告警基站占比
var site_num_lte = []// 基站数
var cell_num_lte = []// 小区数
var hige_interfere_num = []// 高干扰小区数
var starttime1 = []
var geoDim1 = []// 地理纬度子集列表
var radio_equipment_availability = []

var wireless_access_rate = []
var ho_succ_rate = []
var wireless_dropcall_rate = []

var wireless_access_1_rate = []
var ho_succ_qci1_rate = []
var erab_dropcall_1_rate = []

var yemian_time = [] //          整体视频下载速率(kbps)
var starttime2 = []
N.indexHome = N.Class.extend({
    resize: function () {
        // var topheight = $('.container-fluid').height() - $('.content-header').height() - 5;
        var topheight = $('.container-fluid').height() - 20
        var bottomheight = topheight * (1 / 2)
        var boxtop = bottomheight - 120
        var maptop = topheight * (2 / 3) - 60
        var mapbot = topheight * (1 / 3) - 60
        $('.control-size-box').height(boxtop)
        $('.control-size-box-map').height(maptop)
        $('.control-size-box-mapbot').height(mapbot)

        var headheight = $('#table1_wrapper .dataTables_scrollHeadInner').height()
        if (headheight) {
            this.tablbeHeight = boxtop - headheight - 5
            $('#table1_wrapper .dataTables_scrollBody').height(this.tablbeHeight)
        }
        headheight = $('#table2_wrapper .dataTables_scrollHeadInner').height()
        if (headheight) {
            this.tablbeHeight = boxtop - headheight - 5
            $('#table2_wrapper .dataTables_scrollBody').height(this.tablbeHeight)
        }
    },
    pageLoad: function (geography, shiduan, geo_dim, city, area) {
        loading.show()
        if (geography) {
            this.geographyChart(shiduan, geo_dim, city, area)
        } else {
            this.timeChart(shiduan, geo_dim, city, area)
        }
        this.chartTop(shiduan, geo_dim, city, area)
    },
    chartTop: function (shiduan, geo_dim, city, area) {
        var param
        if (geo_dim === '省') {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                area: area,
                zhanxing: $('#zhanxing').val(),
                zhishi: $('#zhishi').val()
            }
        } else {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                city: city,
                area: area,
                zhanxing: $('#zhanxing').val(),
                zhishi: $('#zhishi').val()
            }
        }
        param.isChartTop = 'true'
        service.get(getApiPath() + 'newWideTable/geographyChart',
            {
                params: param
            }
        ).then(function (res) {
            var res1 = res.data.a_pm_manager_view_widetable_new_list
            res = res.data.a_pm_lte_manager_view_list
            try {
                setBaseVal(res)
                setBaseVal1(res1)
            } catch (e) {
                console.log(e)
                loading.hide()
            }
        }).catch(function (e) {
            console.log(e)
            loading.hide()
            return false
        })
    },
    geographyChart: function (shiduan, geo_dim, city, area) {
        var param
        if (geo_dim === '省') {
            param = {
                geo_dim: '地市',
                time_dim: shiduan,
                area: area,
                zhanxing: $('#zhanxing').val(),
                zhishi: $('#zhishi').val()
            }
        } else if (geo_dim === '地市' || geo_dim === '区县') {
            param = {
                geo_dim: '区县',
                time_dim: shiduan,
                city: city,
                area: area != '全量小区' ? area : '',
                zhanxing: $('#zhanxing').val(),
                zhishi: $('#zhishi').val()
            }
            /* param = {
                geo_dim: geo_dim,//isDbClickMap ? geo_dim : '区县',
                time_dim: shiduan,
                city: city,
                area: area//area != '全量小区'? area : ''
            } */
        }
        getWideData(param, 'newWideTable/geographyChart')
    },
    timeChart: function (shiduan, geo_dim, city, area) {
        var param
        if (geo_dim === '省') {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                area: area,
                num: shiduan == 'M' ? 6 : 7,
                zhanxing: $('#zhanxing').val(),
                zhishi: $('#zhishi').val()
            }
        } else {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                city: city,
                area: area,
                num: shiduan == 'M' ? 6 : 7,
                zhanxing: $('#zhanxing').val(),
                zhishi: $('#zhishi').val()
            }
        }
        getWideData(param, 'newWideTable/timeChart')
    }
})
var page = new N.indexHome()
$(function () {
    loading.show()
    $(document).on('map:click', function (event, geography, shiduan, geo_dim, map_city, map_area) {
        page.pageLoad(geography, shiduan, geo_dim, map_city, map_area)
    })
    /* if(cityName == 'hebei'){
        page.pageLoad('','D', '省', undefined, '全量小区');
    }else{
        page.pageLoad('','D', '地市', cityName, '全量小区');
    } */
})

function cleanRes () {
    volte_voice_traffic = []
    upoct = []
    starttime = []
    geoDim = []
    geoDim1 = []
    high_load_num = []
    basic_comm_complain_ratio = []
    poor_coverage_cell_ratio = []
    mr_coverage_rate = []
    critical_alarm_ratio = []
    volteVoiceTraffic_upoct_JSON = {}
    site_num_lte = []// 基站数
    cell_num_lte = []// 小区数
    hige_interfere_num = []
    starttime1 = []
    radio_equipment_availability = []

    wireless_access_rate = []
    ho_succ_rate = []
    wireless_dropcall_rate = []

    wireless_access_1_rate = []
    ho_succ_qci1_rate = []
    erab_dropcall_1_rate = []

    yemian_time = [] //          整体视频下载速率(kbps)
    starttime2 = []
}

function setBaseVal (res) {
    // $('#baseSiteNums').html(toThousands(res[0].site_num_lte));//基站数
    // $('#cellNums').html(toThousands(res[0].cell_num_lte));//小区数
    $('#hige_interfere_num_growthrate').html(toThousands(res[0].hige_interfere_num_growthrate) + '%')// 高干扰小区环比
    if (parseFloat(res[0].hige_interfere_num_growthrate) > 0) {
        $('#high_interfer_growthrate_arrow').removeClass('fa-long-arrow-down').removeClass('fa-long-arrow-up').addClass('fa-long-arrow-up')
        $('#high_interfer_growthrate_arrow').css('color', '#f83608')
    } else {
        $('#high_interfer_growthrate_arrow').removeClass('fa-long-arrow-down').removeClass('fa-long-arrow-up').addClass('fa-long-arrow-down')
        $('#high_interfer_growthrate_arrow').css('color', '#46d51a')
    }
    $('#hige_interfere_num').html(toThousands(res[0].hige_interfere_num))// 高干扰小区数
    $('#bad_cell_num_growthrate').html(toThousands(res[0].bad_cell_num_growthrate) + '%')// 劣化小区环比
    if (parseFloat(res[0].bad_cell_num_growthrate) > 0) {
        $('#bad_cell_growthrate_arrow').removeClass('fa-long-arrow-down').removeClass('fa-long-arrow-up').addClass('fa-long-arrow-up')
        $('#bad_cell_growthrate_arrow').css('color', '#f83608')
    } else {
        $('#bad_cell_growthrate_arrow').removeClass('fa-long-arrow-down').removeClass('fa-long-arrow-up').addClass('fa-long-arrow-down')
        $('#bad_cell_growthrate_arrow').css('color', '#46d51a')
    }
    $('#bad_cell_num').html(toThousands(res[0].bad_cell_num))// 劣化小区数
    // $('#lte_users').html(toThousands(res[0].lte_users));//4G客户数
    // $('#lte_users_dou').html(toThousands(res[0].lte_users_dou) + '(MB)');//4G客户DOU
    // $('#unlimited_lte_users').html(toThousands(res[0].unlimited_lte_users));//4G不限量客户数(万)
    // $('#bbu_online_rate').html(toThousands(res[0].bbu_online_rate));//BBU在网率  -名称改为->无线设备在网率
    // $('#radio_equipment_availability').html(toThousands(res[0].radio_equipment_availability));//无线设备可用率

    $('#wireless_access_rate').html(returnFloat(res[0].wireless_access_rate))
    $('#ho_succ_rate').html(returnFloat(res[0].ho_succ_rate))
    $('#wireless_dropcall_rate').html(returnFloat(res[0].wireless_dropcall_rate))
    $('#wireless_access_1_rate').html(returnFloat(res[0].wireless_access_1_rate))
    $('#ho_succ_qci1_rate').html(returnFloat(res[0].ho_succ_qci1_rate))
    $('#erab_dropcall_1_rate').html(returnFloat(res[0].erab_dropcall_1_rate))

    var currentPattern = $('#zhishi').val()
    if (currentPattern === '全量小区') {
        currentPattern = 'TDD'
    }
    currentPattern = currentPattern + '高干扰数'
    $('#currentPattern').html(currentPattern)
}
function setBaseVal1 (res1) {
    $('#baseSiteNums').html(res1 ? toThousands(res1[0].site_num_lte) : '0')// 基站数
    $('#cellNums').html(res1 ? toThousands(res1[0].cell_num_lte) : '0')// 小区数
    $('#lte_users').html(res1 ? toThousands(res1[0].lte_users) : '0')// 4G客户数
    $('#lte_users_dou').html(res1 ? toThousands(res1[0].lte_users_dou) + '(MB)' : '0')// 4G客户DOU
    $('#unlimited_lte_users').html(res1 ? toThousands(res1[0].unlimited_lte_users) : '0')// 4G不限量客户数(万)
    $('#bbu_online_rate').html(toThousands(parseFloat(res1[0].bbu_online_rate).toFixed(2)))// BBU在网率  -名称改为->无线设备在网率
    $('#radio_equipment_availability').html(toThousands(parseFloat(res1[0].radio_equipment_availability).toFixed(2)))// 无线设备可用率

    $('#mr_coverage_rate').html(toThousands(parseFloat(res1[0].mr_coverage_rate).toFixed(2)))// mr 覆盖率
    $('#poor_coverage_cell_ratio').html(toThousands(parseFloat(res1[0].poor_coverage_cell_ratio).toFixed(2)))// 弱覆盖小区占比
}

function getWideData (param, reqUrl) {
    console.log('时间维度:' + param.time_dim + '；地理纬度:' + param.geo_dim + '；省:' + HB_province + '；市:' + param.city + '；区县:' + param.area + '；请求地址:' + reqUrl)
    loading.show()
    service.get(getApiPath() + reqUrl,
        {
            params: param
        }
    ).then(function (res) {
        cleanRes()
        try {
            var res1 = res.data.a_pm_manager_view_widetable_new_list
            var a_pm_lte_manager_view_list = res.data.a_pm_lte_manager_view_list
            if (a_pm_lte_manager_view_list && a_pm_lte_manager_view_list.length >= 1) {
                /* if(isSetBaseVal(reqUrl)){
                    setBaseVal(res);
                } */
                for (var i = a_pm_lte_manager_view_list.length - 1; i > -1; i--) {
                    if (a_pm_lte_manager_view_list[i].city != '不详' && a_pm_lte_manager_view_list[i].area != '不详') {
                        setVal(a_pm_lte_manager_view_list[i])
                    }
                }
            }
            if (res1 && res1.length >= 1) {
                for (var i = res1.length - 1; i > -1; i--) {
                    if (res1[i].city != '不详' && res1[i].area != '不详') {
                        setVal1(res1[i])
                    }
                }
            }

            setCalculateVal(reqUrl, param, res)
            drawPage()
        } catch (e) {
            console.log(e)
            loading.hide()
        }
        loading.hide()
    }).catch(function (e) {
        console.log(e)
        loading.hide()
        return false
    })
}

function setCalculateVal (reqUrl, param, res) {
    if (reqUrl.indexOf('geographyChart') != -1 && param.geo_dim === '区县' && param.city && !param.area && param.zhanxing === '全量小区' && param.zhishi === '全量小区') {
        var special_list = res.data.special_list
        $('#province_wireless_access_rate_percent').html('(' + special_list[0].province_wireless_access_rate_percent + '%)')
        $('#province_ho_succ_rate_percent').html('(' + special_list[0].province_ho_succ_rate_percent + '%)')
        $('#province_wireless_dropcall_rate_percent').html('(' + parseFloat(special_list[0].province_wireless_dropcall_rate_percent).toFixed(2) + '%)')
        $('#province_wireless_access_1_rate_percent').html('(' + parseFloat(special_list[0].province_wireless_access_1_rate_percent).toFixed(2) + '%)')
        $('#province_ho_succ_qci1_rate_percent').html('(' + special_list[0].province_ho_succ_qci1_rate_percent + '%)')
        $('#province_erab_dropcall_1_rate_percent').html('(' + special_list[0].province_erab_dropcall_1_rate_percent + '%)')
        $('#province_hige_interfere_num_percent').html('(' + special_list[0].province_hige_interfere_num_percent + '%)')
        $('#province_bad_cell_num_percent').html('(' + special_list[0].province_bad_cell_num_percent + '%)')

        $('#province_mr_coverage_rate_percent').html('(' + special_list[0].province_mr_coverage_rate_percent + '%)')
        $('#province_poor_coverage_cell_ratio_percent').html('(' + special_list[0].province_poor_coverage_cell_ratio_percent + '%)')
        $('.targetHidden').removeAttr('hidden')
    } else {
        $('.targetHidden').attr('hidden', 'hidden')
    }
}

function drawPage () {
    // 流量话务量
    volteVoiceTraffic_upoct_JSON = {
        id: 'line1',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim1 : starttime1,
        data: [
            {
                name: '基站数',
                type: 'column',
                maxPointWidth: 10,
                // color: N.Util.Theme_colors.blue,
                data: site_num_lte,
                yAxis: 0
            }, {
                name: '小区数',
                type: 'line',
                marker: {
                    enabled: true, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                // color: N.Util.Theme_colors.orange,
                data: cell_num_lte,
                yAxis: 1
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        Yfloor: Math.min.apply(Math, upoct),
        Yfloor2: 0

    }
    // drawColumnCol(volteVoiceTraffic_upoct_JSON);

    // LTE无线接通率、切换成功率、掉线率
    drawColumnColMax({
        id: 'line1',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '无线接通率(%)',
                type: 'column',
                maxPointWidth: 10,
                // color: N.Util.Theme_colors.blue,
                data: wireless_access_rate,
                yAxis: 0
            },
            {
                name: '切换成功率(%)',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.red,
                data: ho_succ_rate,
                yAxis: 0
            },
            {
                name: '掉线率(%)',
                type: 'line',
                marker: {
                    enabled: true, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                // color: N.Util.Theme_colors.orange,
                data: wireless_dropcall_rate,
                yAxis: 1
            }

        ],
        marginTop: 30,
        marginBottom: 35,
        itemWidth: 110,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabled: true,
        Yfloor: 98, // Math.max.apply(Math, ho_succ_rate) * 0.95,
        YMax: 100,
        YMax2: 0.8// Math.max.apply(Math, wireless_dropcall_rate) * 10
        // Yfloor2: Math.max.apply(Math, wireless_dropcall_rate) * (-5)
        // Yfloor2: 0.001
    })
    // VOLTE无线接通率、切换成功率、掉线率
    drawColumnColMax({
        id: 'line2',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '无线接通率(%)',
                type: 'column',
                maxPointWidth: 10,
                // color: N.Util.Theme_colors.blue,
                data: wireless_access_1_rate,
                yAxis: 0
            },
            {
                name: '切换成功率(%)',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.red,
                data: ho_succ_qci1_rate,
                yAxis: 0
            },
            {
                name: '掉话率(%)',
                type: 'line',
                marker: {
                    enabled: true, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                // color: N.Util.Theme_colors.orange,
                data: erab_dropcall_1_rate,
                yAxis: 1
            }

        ],
        marginTop: 30,
        marginBottom: 35,
        itemWidth: 110,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabled: true,
        Yfloor: 90, // Math.max.apply(Math, ho_succ_qci1_rate) * 0.94,
        YMax: 100,
        YMax2: 0.15// Math.max.apply(Math, wireless_dropcall_rate) * 10
        // Yfloor2: Math.max.apply(Math, wireless_dropcall_rate) * (-5)
        // Yfloor2: 0.001
    })


    // 高负荷小区数
    drawColumnCol({
        id: 'line5',
        title: '高干扰小区数',
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '高干扰小区数',
                type: 'areaspline',
                // color: N.Util.Theme_colors.blue,
                fillOpacity: 0.3, // 指定面积图的透明度
                marker: {
                    enabled: true,
                    symbol: 'circle',
                    radius: 2
                },
                data: hige_interfere_num
            }
        ],
        marginTop: 30,
        marginBottom: 35,
        itemWidth: 110,
        lenabled: false,
        lenabledAlign: 'center',
        lenabledVerticalAlign: 'bottom',
        layout: 'horizontal'
    })
    /* //基础通信万投比
    drawColumnCol({
        id: 'line2',
        title: '基础通信万投比',
        cate: $("#showFont").attr("geography") ? geoDim1 : starttime1,
        XWidth:1,
        YWidth:0,
        data: [
            {
                name:'基础通信万投比(%)',
                type:'areaspline',
                // color: N.Util.Theme_colors.blue,
                fillOpacity: 0.3, // 指定面积图的透明度
                marker: {
                    enabled: true,
                    symbol: 'circle',
                    radius: 2,
                },
                data: basic_comm_complain_ratio,
                zones: [ {
                    value: 0.15
                    // color: N.Util.Theme_colors.blue
                },{
                    color: N.Util.Theme_colors.alarmRed
                },
                ]
            }
        ],
        marginTop:30,
        marginBottom:35,
        itemWidth:110,
        lenabled: false,
        lenabledAlign: 'center',
        lenabledVerticalAlign: 'bottom',
        layout:'horizontal',
    }); */
    // MR覆盖率/弱覆盖小区占比
    drawColumnColMax({
        id: 'line4',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim1 : starttime1,
        data: [
            {
                name: 'MR覆盖率(%)',
                type: 'column',
                maxPointWidth: 10,
                // color: N.Util.Theme_colors.blue,
                data: mr_coverage_rate,
                zones: [ {
                    value: 90,
                    color: N.Util.Theme_colors.alarmRed
                }
                ],
                yAxis: 0
            }, {
                name: '弱覆盖小区占比(%)',
                type: 'line',
                marker: {
                    enabled: true, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                // color: N.Util.Theme_colors.orange,
                data: poor_coverage_cell_ratio,
                zones: [ {
                    value: 10
                    // color: N.Util.Theme_colors.blue
                }, {
                    color: N.Util.Theme_colors.alarmRed
                }
                ],
                yAxis: 1
            }
        ],
        marginTop: 30,
        marginBottom: 35,
        itemWidth: 110,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabled: true,
        // Yfloor: Math.max.apply(Math, mr_coverage_rate) * 0.5,
        YMax: 100,
        Yfloor: 80,
        Yfloor2: 0,
        YMax2: 40
    })
    /* //严重告警小区占比--名称改为->严重告警基站占比-->无线设备可用率
    drawColumnColMax({
        id: 'line6',
        title: 'LTE无线设备可用率',
        cate: $("#showFont").attr("geography") ? geoDim1 : starttime1,
        data: [
            {
                name:'LTE无线设备可用率(%)',
                type:'areaspline',
                // color: N.Util.Theme_colors.blue,
                fillOpacity: 0.3, // 指定面积图的透明度
                marker: {
                    enabled: true,
                    symbol: 'circle',
                    radius: 2,
                },
                data: radio_equipment_availability
            }
        ],
        marginTop:30,
        marginBottom:35,
        itemWidth:110,
        lenabled: false,
        lenabledAlign: 'center',
        lenabledVerticalAlign: 'bottom',
        layout:'horizontal',
        Yfloor: 95,//Math.max.apply(Math, radio_equipment_availability) * 0.95,
        YMax: 100,
    }); */

    // 视频下载速率(整体)
    // 视频下载速率
    yemian_time = [2241.49, 2264.35, 2253.77, 2242.49, 2259.02, 2255.94, 2287.93, 2268.14, 2255.18, 2304.37, 2300.56, 2321.80, 2347.61, 2277.60]
    starttime2 = ['10-29', '10-30', '10-31', '11-01', '11-02', '11-03', '11-04', '11-05', '11-06', '11-07', '11-08', '11-09', '11-10', '11-11'
    ]
    drawColumnColMax({
        id: 'line6',
        title: null,
        cate: starttime2,
        data: [
            {
                name: '页面显示平均时长(ms)',
                type: 'areaspline',
                // color: N.Util.Theme_colors.blue,
                fillOpacity: 0.3, // 指定面积图的透明度
                marker: {
                    enabled: true,
                    symbol: 'circle',
                    radius: 2
                },
                data: yemian_time
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        // Yfloor: Math.min.apply(Math, upoct),
        Yfloor: 2200,
        YMax: 2400

    })
    loading.hide()
}

function setVal (item) {
    // site_num_lte.push(item.site_num_lte);//基站数
    // cell_num_lte.push(item.cell_num_lte);//小区数
    volte_voice_traffic.push(item.volte_voice_traffic)
    upoct.push(item.upoct)
    starttime.push(item.starttime.substr(5, 5))
    item.area === '全量小区' ? geoDim.push(item.city) : geoDim.push(item.area)
    hige_interfere_num.push(item.hige_interfere_num)
    high_load_num.push(item.high_load_num)
    // basic_comm_complain_ratio.push(item.basic_comm_complain_ratio);
    // mr_coverage_rate.push(item.mr_coverage_rate);
    // poor_coverage_cell_ratio.push(item.poor_coverage_cell_ratio);
    // critical_alarm_ratio.push(item.critical_alarm_ratio);

    wireless_access_rate.push(parseFloat(item.wireless_access_rate))
    ho_succ_rate.push(parseFloat(item.ho_succ_rate))
    wireless_dropcall_rate.push(parseFloat(item.wireless_dropcall_rate))

    wireless_access_1_rate.push(parseFloat(item.wireless_access_1_rate))
    ho_succ_qci1_rate.push(parseFloat(item.ho_succ_qci1_rate))
    erab_dropcall_1_rate.push(parseFloat(item.erab_dropcall_1_rate))
}
function setVal1 (item) {
    site_num_lte.push(parseInt(item.site_num_lte))// 基站数
    cell_num_lte.push(parseInt(item.cell_num_lte))// 小区数
    starttime1.push(item.starttime.substr(5, 5))
    basic_comm_complain_ratio.push(parseFloat(item.basic_comm_complain_ratio))
    mr_coverage_rate.push(parseFloat(item.mr_coverage_rate))
    poor_coverage_cell_ratio.push(parseFloat(item.poor_coverage_cell_ratio))
    critical_alarm_ratio.push(item.critical_alarm_ratio)
    item.area === '全量小区' ? geoDim1.push(item.city) : geoDim1.push(item.area)
    radio_equipment_availability.push(parseFloat(item.radio_equipment_availability))
}

function isSetBaseVal (param) {
    // return (param.geo_dim === '省' && !param.city && param.area === '全量小区') || (param.geo_dim === '地市' && param.city && param.city != '全量小区' && param.area === '全量小区') || (param.geo_dim === '区县' && param.city && param.city != '全量小区' && param.area != '全量小区');
    return param === 'newWideTable/timeChart'
}
